<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('dynamic/index')}">动态列表</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('dynamic/index')}">
            动态内容:
			<input type="text" class="form-control" name="c_content" value="{$c_content}" placeholder="请输入动态内容">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('dynamic/index')}">清空</a>
		</form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>发帖人</th>
					<th>内容简介</th>
					<th>点赞数</th>
					<th>分享数</th>
					<th>评论数</th>
					<th>发布时间</th>
					<th width="50">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="circle" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.s_name}</td>
                    <td><a href='{:url("dynamic/info",array("id"=>$vo["id"]))}'>{:mb_substr($vo.c_content,0,32)}</a></td>
					<td>{$vo.c_like}</td>
					<td>{$vo.c_share}</td>
					<td>{$vo.c_comment}</td>
					<td>{$vo.c_createtime}</td>
					<td>
                        <if condition="$vo['c_status'] eq 10">
                            <a href="{:url('dynamic/enabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要屏蔽此动态吗？">屏蔽</a>
                            <else />
                            <a href="{:url('dynamic/enabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要显示此动态吗？"><b style="color: red">显示</b></a>
                        </if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>